package com.lianzhihui.romeex.widget.dialog;

import android.app.Activity;
import android.view.View;

import androidx.annotation.NonNull;

import com.lianzhihui.romeex.R;
import com.lianzhihui.romeex.ui.base.BaseDialog;

import butterknife.OnClick;

/**
 * Description: 密码验证通用 弹窗
 * Author: RAMON
 * CreateDate: 2020/9/10 10:06 AM
 * UpdateUser:
 * UpdateDate:
 * UpdateRemark:
 * Version:
 */
public class ExchangeSucDialog extends BaseDialog {


    Activity activity;
    Callback callback;
    public ExchangeSucDialog(@NonNull Activity activity) {
        super(activity);
        this.activity = activity;
    }

    @Override
    protected int provideViewId() {
        return R.layout.dialog_exchange_suc;
    }

    public void setCallbackListener(Callback callback){
        this.callback=callback;
    }

    @Override
    protected void initView() {


    }


    @OnClick({  R.id.bt_yes})
    public void onClick(View view) {
        switch (view.getId()) {

            case R.id.bt_yes:
                if(callback!=null)
                {
                    callback.confirm();
                }
                dismiss();

                break;
            default:
                break;
        }
    }


    public interface Callback{
        void confirm();
    }
}
